/* 🎨 CSS变量系统：统一管理和复用样式值 */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 主背景渐变 */
    --white-alpha: rgba(255, 255, 255, 0.95); /* 半透明白色背景 */
    --shadow-light: 0 4px 15px rgba(0,0,0,0.2); /* 轻微阴影效果 */
    --shadow-medium: 0 10px 40px rgba(0,0,0,0.1); /* 中等阴影效果 */
    --shadow-heavy: 0 15px 50px rgba(0,0,0,0.2); /* 强烈阴影效果 */
    --transition: all 0.3s ease; /* 统一过渡动画 */
}
/* 🧹 全局重置：消除浏览器默认样式差异 */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* 🌐 页面基础：设置整体布局和背景 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--primary-gradient); /* 渐变背景营造科技感 */
    min-height: 100vh; /* 确保全屏高度 */
    /* display: flex; 弹性布局居中 */
    align-items: center;
    justify-content: center;
    padding: 20px; /* 防止边缘紧贴 */
}
/* 自适应显眼搜索框样式 */
.search-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}
/* 🏢 Logo区域：品牌展示和视觉焦点 */
.logo-container { margin-bottom: 1.5rem; } /* Logo与标题间距 */
.logo { 
    width: 80px; height: 80px; /* 桌面端Logo尺寸 */
    border-radius: 50%; /* 圆形Logo增强识别度 */
    box-shadow: var(--shadow-light); /* 立体感阴影 */
    transition: var(--transition); /* 悬停动画 */
    display: block;
    margin: 0 auto;
}
.logo:hover { transform: scale(1.1); } /* 悬停放大效果 */

/* 📝 主标题：页面核心信息和视觉层次 */
.search-title { 
    color: rgba(100, 89, 89, 0.445); 
    font-size: 2.5rem; /* 桌面端大标题 */
    font-weight: 300; /* 细字体现代感 */
    margin-bottom: 3rem; /* 标题与搜索框间距 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 文字立体感 */
    text-align: center;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.search-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 1.1rem;
    padding: 12px 20px;
    min-height: 50px;
    width: 100%;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

#searchButton {
    background: white;
    color: #667eea;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

#searchButton:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

.search-icon {
    font-size: 1.2rem;
}

.search-text {
    display: inline;
}

.search-suggestions {
    margin-top: 10px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.search-suggestions.active {
    max-height: 300px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .search-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .search-wrapper {
        padding: 6px;
    }
    
    #searchInput {
        font-size: 1rem;
        padding: 10px 15px;
        min-height: 45px;
    }
    
    #searchButton {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .search-text {
        display: none;
    }
    
    .search-icon {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 480px) {
    .search-wrapper {
        padding: 4px;
    }
    
    #searchInput {
        font-size: 0.9rem;
        padding: 8px 12px;
        min-height: 40px;
    }
    
    #searchButton {
        padding: 8px 16px;
    }
}

/* 超小屏幕优化 */
@media screen and (max-width: 320px) {
    #searchInput::placeholder {
        font-size: 0.8rem;
    }
}

/* 大屏幕优化 */
@media screen and (min-width: 1200px) {
    .search-container {
        max-width: 900px;
    }
    
    #searchInput {
        font-size: 1.2rem;
        padding: 15px 25px;
        min-height: 55px;
    }
    
    #searchButton {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .search-wrapper {
        background: linear-gradient(135deg, #434343 0%, #000000 100%);
    }
    
    #searchButton {
        background: #333;
        color: white;
    }
    
    #searchButton:hover {
        background: #444;
    }
}

/* 动画效果 */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.search-wrapper:focus-within {
    animation: pulse 2s infinite;
}

/* 基础样式 */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: normal;
}

a {
    text-decoration: none;
}

a:hover {
    color: blanchedalmond;
}

.log {
    margin-top: 8px;
    font-family: monospace;
}

/* 鸟瞰图功能样式 */
#birdEyeContainer {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 200px;
    height: 150px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: move;
}

#birdEyeContainer:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

#birdEyeCanvas {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    display: block;
}

#viewportIndicator {
    position: absolute;
    border: 2px dashed #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    cursor: move;
    transition: all 0.2s ease;
    border-radius: 2px;
    pointer-events: auto;
}

#viewportIndicator:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff5252;
}

#viewportIndicator:active {
    cursor: grabbing;
    background: rgba(255, 107, 107, 0.3);
}

/* 鸟瞰图控制按钮 */
.bird-eye-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bird-eye-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.bird-eye-toggle:active {
    transform: scale(0.95);
}

.bird-eye-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    margin-bottom: 5px;
}

.bird-eye-toggle:hover .bird-eye-tooltip {
    opacity: 1;
}

/* 待开发功能列表样式 */
.feature-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    #birdEyeContainer {
        width: 150px;
        height: 112px;
        bottom: 15px;
        left: 15px;
    }
    
    .bird-eye-toggle {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    #birdEyeContainer {
        width: 120px;
        height: 90px;
        bottom: 10px;
        left: 10px;
    }
    
    .bird-eye-toggle {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #birdEyeContainer,
    #viewportIndicator,
    .bird-eye-toggle,
    .feature-card {
        transition: none;
    }
    
    .feature-card::before {
        display: none;
    }
}

@media print {
    .feature-card {
        background: #f5f5f5 !important;
        color: #333 !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid;
    }
    
    .feature-card:hover {
        transform: none !important;
    }
    
    #birdEyeContainer,
    .bird-eye-toggle {
        display: none !important;
    }
}

